#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:pengfeifu
@file: day_13_json2.py 
@version:
@time: 2021/11/07 
@email:1324734112@qq.com
@desc： 
@function：常用函数
"""
import re

server_dict = [
    {
        "title": "secret_photo",
        "server_path": "https://www.1z22.com/avshipin6/7/",
        "type": 1,
        "value": "hffafdsafsa"
    }, {
        "title": "woman_photo",
        "server_path": "https://www.1z22.com/avshipin6/10",
        "type": 1,
        "value": "hffafdsafsa"
    }, {
        "title": "cartoon_photo",
        "server_path": "https://www.1z22.com/avshipin6/10",
        "type": 0,
        "value": "hffafd全彩fsa"
    }
]

for server in server_dict:
    type = server["type"]
    value = server["value"]
    if type == 0:
        if not re.findall("全彩", value):
            continue
    print(value)
